package cn.edu.cumt.ec.shop.vo.mapper;

import cn.edu.cumt.ec.shop.dto.ProductAddDto;
import cn.edu.cumt.ec.shop.dto.ProductEditDto;
import cn.edu.cumt.ec.shop.entity.Product;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ProductMapper {
    ProductMapper INSTANCE = Mappers.getMapper( ProductMapper.class);
    Product dto2Entity(ProductAddDto dto);
    Product dto2Entity(ProductEditDto dto);
}
